
#include "bsp_device.h"

/*****************************************************                       
*				app_init_AppDevice	
* Description:	
* Arguments  :   
* Returns    : 
******************************************************/
void bsp_init_AppDevice( p_appDevice p_Device,
						 DEVICE_SEND_CMOT p_create,
						 DEVICE_SEND_TMOT p_timerout,
						 DEVICE_SEND_FUC  p_send ){

	p_Device->d_create_timer = p_create;
	p_Device->d_deal_timerout= p_timerout;
	p_Device->d_send_fuc     = p_send;
}


/*****************************************************                       
*				app_set_AppDeviceRecv	
* Description:	
* Arguments  :   
* Returns    : 
******************************************************/
void bsp_set_AppDeviceRecv( p_appDevice p_Device,
						    unsigned char *p_Data,
							unsigned char  u_max,
							unsigned char  u_per ){

	bsp_init_cir_queue( &p_Device->p_RecvBuffer,
		               p_Data,u_max,u_per );
}

/*****************************************************                       
*				app_set_AppDeviceSend	
* Description:	
* Arguments  :   
* Returns    : 
******************************************************/
void bsp_set_AppDeviceSend( p_appDevice p_Device,
						    unsigned char *p_Data,
							unsigned char  u_max,
							unsigned char  u_per ){

	bsp_init_cir_queue( &p_Device->p_SendBuffer,
		                p_Data,u_max,u_per );
}